<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.js"></script>
    <script src="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/4.5.2/js/bootstrap.js"></script>
    <link href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/4.5.2/css/bootstrap.css" rel="stylesheet">
</head>
<body>
<!--    <div th:include="back/common/css_js :: main"></div>-->
    <div class="container">
        <div class="mt-4" style="text-align: center">
            <img th:src="@{/img/NUK-ikun.jpg}" style="border-radius: 50%;border: 3px solid lightgreen" width="80" height="80">
        </div>
        <form action="/back/login/doLogin" method="post" style="max-width: 400px;margin: 10px auto">
            <div class="form-group">
                <label for="username">账号</label>
                <input type="text" id="username" name="username" class="form-control" placeholder="输入账号，如：sam">
            </div>
            <div class="form-group">
                <label for="password">密码</label>
                <input type="password" id="password" name="password" class="form-control" placeholder="请输入密码">
            </div>
            <div class="form-group">
                <label for="role">管理员</label>
                <input type="radio" name="role" id="role" value="管理员">
                &nbsp;&nbsp;
                <label for="role1">导游</label>
                <input type="radio" name="role" id="role1" value="导游">
                &nbsp;&nbsp;
                <label for="role2">游客</label>
                <input type="radio" name="role" id="role2" value="游客">
            </div>
            <div style="color: red"><span th:text="${error}"></span></div>
            <input type="submit" class="btn btn-success" value="登录" style="width: 100%">
        </form>
        <div style="max-width: 400px;margin: 10px auto">
            <a th:href="@{/back/login/register}"><input type="submit" class="btn btn-success" value="注册" style="width: 100%"></a>
        </div>
    </div>
<!--    <div th:include="back/common/header :: footer"></div>-->
</body>
</html>